import request from '@/utils/request'

// 查询客户余额列表
export function listCusomerbalance(query) {
  return request({
    url: '/customer/balance/list',
    method: 'get',
    params: query
  })
}

// 查询客户余额详细
export function getCusomerbalance(customername) {
  return request({
    url: '/customer/balance/' + customername,
    method: 'get'
  })
}

// 新增客户余额
export function addCusomerbalance(data) {
  return request({
    url: '/customer/balance',
    method: 'post',
    data: data
  })
}

// 修改客户余额
export function updateCusomerbalance(data) {
  return request({
    url: '/customer/balance',
    method: 'put',
    data: data
  })
}

// 删除客户余额
export function delCusomerbalance(customername) {
  return request({
    url: '/customer/balance/' + customername,
    method: 'delete'
  })
}

// 导出客户余额
export function exportCusomerbalance(query) {
  return request({
    url: '/customer/balance/export',
    method: 'get',
    params: query
  })
}
